package com.edianping.bean;

import java.util.ArrayList;
import java.util.List;

public class ShopItemBean implements IItemBean {
	public ShopItemBean( String id ){
		this.id = id;
	}

	String id = "";
	String shopid = "";
	int score = 0;
	int reality = 0;
	int service = 0;
	int velocity = 0;
	int rate = 0;
	
	List<ReviewItemBean> reviews = new ArrayList<ReviewItemBean>();

	public String getShopid() {
		return shopid;
	}

	public void setShopid(String shopid) {
		this.shopid = shopid;
	}

	public int getReality() {
		return reality;
	}

	public void setReality(int reality) {
		this.reality = reality;
	}

	public int getService() {
		return service;
	}

	public void setService(int service) {
		this.service = service;
	}

	public int getVelocity() {
		return velocity;
	}

	public void setVelocity(int velocity) {
		this.velocity = velocity;
	}

	public int getRate() {
		return rate;
	}

	public void setRate(int rate) {
		this.rate = rate;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	public String getId() {
		return id;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}
	
	public List<ReviewItemBean> getReviews() {
		return reviews;
	}

	public void setReviews(List<ReviewItemBean> reviews) {
		this.reviews = reviews;
	}

	/**
	 * for unit test 
	 */
	public String toString(){
		StringBuffer sb  = new StringBuffer();
		sb.append("id = "+this.id+"\n");
		
		return sb.toString();	
	}
	
}
